/**
 *	知识生成路由配置
 **/
export default [
  {
    path: "/knowledgeGeneration",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/knowledgeGeneration/sourceDataManagement",
    meta: {
      title: "领域实体关系抽取",
      icon: "icon-shu",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "sourceDataManagement",
        component: () =>
          import("@/views/knowledgeGeneration/sourceDataManagement/index.vue"),
        name: "sourceDataManagement",
        meta: {
          title: "源数据管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "knowledgeGet",
        component: () =>
          import("@/views/knowledgeGeneration/knowledgeGet/index.vue"),
        name: "knowledgeGet",
        hidden: true,
        meta: {
          title: "知识获取",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "knowledgeGet/acquireKnowledge",
        component: () =>
          import(
            "@/views/knowledgeGeneration/knowledgeGet/acquireKnowledge.vue"
          ),
        name: "acquireKnowledge",
        hidden: true,
        meta: {
          title: "输入抽取",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/knowledgeGet",
        },
      },
      {
        path: "knowledgeGet/detail",
        component: () =>
          import("@/views/knowledgeGeneration/knowledgeGet/detail.vue"),
        name: "detail",
        hidden: true,
        meta: {
          title: "查看知识",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/knowledgeGet",
        },
      },
      {
        path: "annotation/index",
        component: () =>
          import("@/views/knowledgeGeneration/annotation/index.vue"),
        name: "annotationList",
        meta: {
          title: "标注数据",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "annotation/detail/:id",
        component: () =>
          import("@/views/knowledgeGeneration/annotation/detail.vue"),
        name: "annotationDetail",
        hidden: true,
        meta: {
          title: "标注数据-查看",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/annotation/index",
        },
      },
      {
        // path: "annotation/annotation/:id",
        path: "annotation/annotation",
        component: () =>
          import("@/views/knowledgeGeneration/annotation/annotation.vue"),
        name: "annotationData",
        hidden: true,
        meta: {
          title: "标注数据-标注",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/annotation/index",
        },
      },
      {
        // path: "annotation/annotation/:id",
        path: "annotation/annotationPic",
        component: () =>
          import("@/views/knowledgeGeneration/annotation/annotationPic.vue"),
        name: "annotationDataPic",
        hidden: true,
        meta: {
          title: "标注图片数据-标注",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/annotation/index",
        },
      },
      {
        path: "extractTask",
        component: () =>
          import("@/views/knowledgeGeneration/extractTask/Index.vue"),
        name: "ExtractTask",
        meta: {
          title: "抽取任务",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "extractType",
        component: () =>
          import("@/views/knowledgeGeneration/extractType/index.vue"),
        name: "ExtractType",
        meta: {
          title: "目标特性抽取",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "extractType/taskDetail/:name/:modelId/:id",
        component: () =>
          import("@/views/knowledgeGeneration/extractType/detail/detail.vue"),
        name: "ExtractTaskDetail",
        hidden: true,
        meta: {
          title: "目标特性抽取",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "extractType/taskCompareDetail/:modelId/:id",
        component: () =>
          import("@/views/knowledgeGeneration/extractType/detail/compareDetail.vue"),
        name: "ExtractTaskCompareDetail",
        hidden: true,
        meta: {
          title: "目标特性抽取",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "extractTask/struct",
        component: () =>
          import("@/views/knowledgeGeneration/extractTask/struct/Index.vue"),
        name: "StructExtract",
        hidden: true,
        meta: {
          title: "结构化抽取",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: '/knowledgeGeneration/extractTask'
        },
      },
      {
        path: "extract/index",
        component: () =>
          import("@/views/knowledgeGeneration/extract/index.vue"),
        name: "extractList",
        hidden: true,
        meta: {
          title: "抽取数据",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/extractTask",
        },
      },
      {
        path: "extract/detail/:id",
        component: () =>
          import("@/views/knowledgeGeneration/extract/detail.vue"),
        name: "extractDetail",
        hidden: true,
        meta: {
          title: "抽取数据-查看",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/extractTask",
        },
      },

      {
        path: "extract/proofread",
        component: () =>
          import("@/views/knowledgeGeneration/extract/proofread.vue"),
        name: "extractProofread",
        hidden: true,
        meta: {
          title: "抽取数据-校核",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/extractTask",
        },
      },
      // {
      //   path: "extract/proofreadPic",
      //   component: () =>
      //     import("@/views/knowledgeGeneration/extract/proofreadPic.vue"),
      //   name: "extractProofreadPic",
      //   hidden: true,
      //   meta: {
      //     title: "抽取图片数据-校核",
      //     roles: ["superAdmin", "commonAdmin"],
      //     activeMenu: "/knowledgeGeneration/extractTask",
      //   },
      // },
      {
        path: "extractRule",
        component: () =>
          import("@/views/knowledgeGeneration/extractRule/Index.vue"),
        name: "ExtractRule",
        meta: {
          title: "抽取规则",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "extractRule/config",
        component: () =>
          import("@/views/knowledgeGeneration/extractRule/config/Index.vue"),
        name: "ExtractRuleConfig",
        hidden: true,
        meta: {
          title: "抽取规则",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/knowledgeGeneration/extractRule",
        },
      },
      {
        path: "entityLink/index",
        component: () =>
          import("@/views/knowledgeGeneration/entityLink/index.vue"),
        name: "entityLink",
        hidden: true,
        meta: {
          title: "实体链接",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "modelManagement",
        component: () =>
          import("@/views/knowledgeGeneration/modelManagement/index.vue"),
        name: "modelManagement_gener",
        hidden: true,
        meta: {
          title: "模型管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
    ],
  },
];
